import Vue from 'vue'
import Router from 'vue-router'
import Login from "../components/Login";
import Home from "../components/Login/Home";
import page1 from "../components/page1";
import page2 from "../components/page2";
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home,
      children:[
        {
          path:'/page1',
          name:page1,
          component:page1
        },
        {
          path:'/page2',
          name:page2,
          component:page2
        },
      ]
    },
  ]
})
